package cn.edu.xmut.chen.zhlg.zhlg.vacancy.service.impl;

import cn.edu.xmut.chen.zhlg.zhlg.vacancy.entity.Apply;
import cn.edu.xmut.chen.zhlg.zhlg.vacancy.mapper.ApplyMapper;
import cn.edu.xmut.chen.zhlg.zhlg.vacancy.service.ApplyService;
import cn.edu.xmut.chen.zhlg.zhlg.vacancy.result.ApplyResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class ApplyServiceImpl extends ServiceImpl<ApplyMapper, Apply> implements ApplyService {
    @Override
    public Page<ApplyResult> pageWithSql(Page<ApplyResult> page, String userId, String status) {
        return baseMapper.selectPageWithSql(page, userId, status);
    }

    @Override
    public Page<ApplyResult> applyListByUser(Page<ApplyResult> page, String userId, String status) {
        return baseMapper.applyListByUser(page, userId, status);
    }
}